import React, {Component} from 'react'
import {connect} from "react-redux";
// import {actionCreators} from './store'
import {LoginWarrper,LoginBox,Input,Button} from "./style";

class Login extends Component{
    render(){
        return(
            <div>
                <LoginWarrper>
                    <LoginBox>

                        <Input placeholder='账号' innerRef={(input)=>{this.count = input}}/>
                        <Input placeholder='密码' type='password'innerRef={(input)=>{this.password = input}}/>
                        <Button onClick={()=>this.props.login(this.count,this.password)}>登录</Button>
                    </LoginBox>
                </LoginWarrper>
            </div>
        )
    }

}


const mapDispatch=(depatch)=>({
    login(count,password){

    }
})
export default connect(null,mapDispatch)(Login)